﻿<?xml version="1.0" encoding="utf-8" ?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <CustomActionGroup Id="{9B1EC5E1-753A-47f6-8A43-BB25997B04E1}" 
                     Title="PowerShellConsole" 
                     Description="PowerShell Console Pages" 
                     Location="Microsoft.SharePoint.SiteSettings" 
                     Sequence="2000"></CustomActionGroup>
  <CustomAction Id="SiteAdministration.PowerShellConsole"
                GroupId="{9B1EC5E1-753A-47f6-8A43-BB25997B04E1}"
                Location="Microsoft.SharePoint.SiteSettings"
                Sequence="1"
                Title="PowerShell Console"
                Rights="ManageSubwebs,ManageWeb,ManagePermissions"
                RequireSiteAdministrator="FALSE">
    <UrlAction Url="~site/_layouts/PSC/PSConsole.aspx"/>
  </CustomAction>
  
  <CustomAction Id="SiteAdministration.RunPowershellScript"
                Location="EditControlBlock"
                RegistrationType="ContentType"
                RegistrationId="0x01010046E1DEE174615B4F82D8724ECBE04685"
                Rights="ManageWeb"
                Sequence="1"
                Title="Run script now"
                RequireSiteAdministrator="FALSE">
    <UrlAction Url="~site/_layouts/PSC/PSConsole.aspx?ID={ItemId}&amp;cmd=run" />
  </CustomAction>
  <CustomAction Id="SiteAdministration.SchedulePowershellScript"
                Location="EditControlBlock"
                RegistrationType="ContentType"
                RegistrationId="0x01010046E1DEE174615B4F82D8724ECBE04685"
                Rights="ManageWeb"
                Sequence="2"
                Title="Schedule script"
                RequireSiteAdministrator="FALSE">
    <UrlAction Url="~site/_layouts/PSC/ScheduleScript.aspx?ID={ItemId}" />
  </CustomAction>
</Elements>